<?php $this->JQuery()->addJavascriptFile(Ac_Util::getImageBaseUrl('/js/tipsy/jquery.tipsy.v-'.AC_VERSION.'.js'))?>
<?php $this->headLink()->appendStylesheet(Ac_Util::getImageBaseUrl('/css/tipsy/tipsy.v-'.AC_VERSION.'.css')) ?>
<?php $this->JQuery()->javascriptCaptureStart()?>
    $('document').ready(function(){
        ValidateAjax.initialize('form_register_personal', '/user/validate-register-personal');
        $j('#tips').tipsy({html: true, fallback: "<p style='text-align:left'><?php echo $this->t('Company Accounts:<br>- Are specially designed to promote businesses<br>- Auto-list your Company details in AsiaClassified\'s Business Directory - Free<br>- Allows you to designate sub-accounts for your sales team<br>- Provide consolidated reports across all accounts (Primary and Subs)<br>- Access AsiaClassified\'s growing community</p>')?>" });
    });
    

<?php $this->JQuery()->javascriptCaptureEnd()?>
<?php  $this->form_register_personal->setAttrib('id', 'form_register_personal'); ?>
<?php $this->headLink()->appendStylesheet(Ac_Util::getImageBaseUrl('/css/custom_member.v-'.AC_VERSION.'.css'))?>
<?php $this->headLink()->appendStylesheet(Ac_Util::getImageBaseUrl('/css/custom_post_ad.v-'.AC_VERSION.'.css'))?>
<?php $this->placeholder('container-class')->set('post_ad login signup') ?>

<?php $to_be_confirmed_ads = new Zend_Session_Namespace('to_be_confirmed_ads');?>

<hgroup>
    <?php if (!empty($to_be_confirmed_ads->arr)):?>
        <h1><?php echo $this->t('Post an Ad')?></h1>
        <h2><?php echo $this->t("It's free and take less than a minute")?></h2>
    <?php else:?>
        <h1><?php echo $this->t('Sign Up for AsiaClassified')?></h1>        
    <?php endif;?>
      <h2><?php //echo $this->t("It's free and take less than a minute")?></h2>
    </hgroup>

    <section class="main_section grid_12">
      <section class="nav">
          <?php if (!empty($to_be_confirmed_ads->arr)):?>
        <ol>
          <li><span><?php echo $this->t('1. Select Category')?></span></li>
          <li><span><?php echo $this->t('2. Create Your Ad')?></span></li>
          <li class="selected"><span><?php echo $this->t('3. Login')?></span></li>
        </ol>
          <?php endif;?>

      </section>
            <!--From here was copied from the login section-->
    <section class="signup grid_11">
    <!--geese: change the code for this part-->
        <div class="nav">
        <ul><li class="login">
                <?php echo $this->t('Current Member?');?><a href="<?php echo $this->geturl('login', 'user')?>" style="display:inline;"> <?php echo $this->t('Login')?></a>
            </li>
            <li class="acc_company">
                <a href="<?php echo $this->geturl('register-company', 'user')?>"><?php echo $this->t('Create a Company Account')?></a><a href="#" class="explain" id="tips">(Explain)</a>
            </li>
        </ul>

        </div>
<!--geese:end-->

        <section class="social grid_6">
            <form>
              <fieldset>
                <legend><?php echo $this->t('Sign Up with Your Favourite Account')?></legend>
                <p class="button facebook"><a href="<?php echo $this->geturl('facebook', 'user')?>"><?php echo $this->t('Connect with Facebook')?></a></p>
                <p class="button twitter"><a href="<?php echo $this->geturl('twitter', 'user')?>"><?php echo $this->t('Connect with Twitter')?></a></p>
                <p class="remark"><?php echo $this->t("By clicking Connect with Facebook or Connect with Twitter, you agree to AsiaClassified's")?> <a href="/default/index/term-of-use"><?php echo $this->t('Terms of Use')?></a> and <a href="/default/index/privacy"><?php echo $this->t('Privacy Policy')?></a>.</p>
              </fieldset>
            </form>

        </section>
        <section class="ac grid_5">
                <?php echo $this->form_register_personal;?>
        </section>
    </section>

      <!--End of copy-->
    </section>
    <aside class="aside">
      <section class="help">
                <p class="nav">
        <a class="country_hk" href="#">Hong Kong</a>
        <?php /*
        <a href="<?php echo $this->url_tc?>" class="language_chi_t">中文</a>
        <a href="<?php echo $this->url_en?>">English</a>
         * 
         */?>
        <a href="http://asiaclassifiedblog.tumblr.com/"><?php echo $this->t('Blog');?></a>
        <a href="http://asiaclassified.zendesk.com/home"><?php echo $this->t('Help');?></a>
        </p>

      </section>
      <section class="login">
        
      </section>
    </aside>